package com.cn.conf;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.redisson.api.RedissonClient;
import org.redisson.solon.RedissonClientOriginalSupplier;

@Configuration
public class RedissonConf {

    @Bean
    public RedissonClient redissonClient(@Inject("${redis.ds2}") RedissonClientOriginalSupplier supplier) {
        return supplier.get();
    }
}